import GlobalDC from "../../frame/common/data.global.center";
import { GClientAPI } from "../api/game.client.api";
import GConfig from "./game.config.manager";
import GGameDC from "./game.data.game.center";
import GGameAssets from "./game.game.assets";

export default class GGameManager {

	public static async init(){
		GlobalDC.init();
		GGameDC.init();

		GGameDC.Status.deviceID = (await GClientAPI.DeviceID());

		await GGameAssets.init(GConfig.country, GConfig.language);
	}

	public static cleanGameStatus(){
		GGameDC.Status.removeTileCount = 0;
		GGameDC.Status.gameover = undefined;
	}
}